package network;
import java.net.*;

public class Server {
	public static String privateKeyMod = "19037192548401257122813412906623969839721885538107749353520972030888318802242192898276384842722426377656425042129340128868382780642365131402342239403389530257365555425531885567837332194139302675246051066343236368638095411073600564979354690446307263012377302939006232964133061817032459213357588137384212950686798640147991239355756029781494233674312158380128385143452361994172908792172466064728248887230532774767631092956546260682663989747064693269836567085525744639453408238297003078635843534948582711664176726486635833116575975321051684361545431083598788603725214215435416034761656696281471144294832218311449669856673";
	public static String privateKetExp = "673042329289496204488436725889920779386233864714522411036637200292479586566293253357742705350990462136349494523912920618704592867362863870168408207541595459150037260188250589143218314750763145986924948055560655296007859185765788929263848173765871620606347725859856901870642602347745670344225883307432769378224090697239666279360211023522081123390227755195914216176851874494946129140214888591940771142812085415917743129806798208577434405563809615887714745320224133275565891383166551500150921932311854547665365563995232794687139088351161150349070969285695691588171899208073079995115293967303247921536847524886730147073";
	public static void main (String args []) throws Exception {
		
		ServerSocket serv = new ServerSocket(8000);
		System.out.println("Connection established");
		
		while(true) {
			Socket conn = serv.accept();
			ServerConnection c = new ServerConnection(conn);
			Thread thread = new Thread (c);
			thread.start();
		}
	}
}
